<html>
<head><meta charset="utf-8"><title>Using rust-project.json · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html">Using rust-project.json</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199774590"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/199774590" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> woody77 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#199774590">(Jun 04 2020 at 16:39)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> </p>
<p>Do you have some time to chat about how to best utilize rust-project.json (now and what you're envisioning for the future?)</p>



<a name="199774733"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/199774733" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#199774733">(Jun 04 2020 at 16:40)</a>:</h4>
<p>In general, yes, but not right now :)</p>



<a name="199776609"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/199776609" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> woody77 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#199776609">(Jun 04 2020 at 16:53)</a>:</h4>
<p>Drop me a line when you have time (woody77 at gmail works just fine).</p>



<a name="201832533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201832533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> John Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201832533">(Jun 24 2020 at 10:34)</a>:</h4>
<p>Hi <span class="user-mention" data-user-id="133169">@matklad</span> , was wondering if you could answer a few questions regarind <code>rust-project.json</code> --</p>
<ol>
<li>The <code>rust-project.json-example</code> linked from the user documentation in <code>rust-analyzer</code> doesn't exist.</li>
<li>It seems like I also need to explicitly add all the stdlib deps, is there a way to generate this from something?<br>
Thanks :)</li>
</ol>



<a name="201832638"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201832638" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201832638">(Jun 24 2020 at 10:36)</a>:</h4>
<ol>
<li><a href="https://github.com/rust-analyzer/rust-project.json-example">https://github.com/rust-analyzer/rust-project.json-example</a></li>
<li>no, sysroot deps need to be manually specified</li>
</ol>



<a name="201833094"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201833094" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> John Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201833094">(Jun 24 2020 at 10:44)</a>:</h4>
<p>I get 404 not found on <code>rust-project.json-example</code></p>



<a name="201833142"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201833142" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201833142">(Jun 24 2020 at 10:44)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> It is marked as private.</p>



<a name="201833459"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201833459" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201833459">(Jun 24 2020 at 10:48)</a>:</h4>
<p>oups, fixed!</p>



<a name="201833818"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/201833818" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> John Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#201833818">(Jun 24 2020 at 10:53)</a>:</h4>
<p>Thanks!</p>



<a name="203928889"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/203928889" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#203928889">(Jul 15 2020 at 08:37)</a>:</h4>
<p>hm, <span class="user-mention" data-user-id="133169">@matklad</span>  shouldn't there be a <code>rust-project.json</code> file in the example repository? <a href="https://github.com/rust-analyzer/rust-project.json-example">https://github.com/rust-analyzer/rust-project.json-example</a></p>



<a name="203928975"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/203928975" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#203928975">(Jul 15 2020 at 08:38)</a>:</h4>
<p>(currently trying to figure out if we can use it to make RA work with Clippy+rustc deps)</p>



<a name="203929035"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/203929035" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#203929035">(Jul 15 2020 at 08:39)</a>:</h4>
<p>it is specified inline in <code>.vscode/settings.json</code></p>



<a name="203929058"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/203929058" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#203929058">(Jul 15 2020 at 08:39)</a>:</h4>
<p>ohh, thanks :)</p>



<a name="203929162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Using%20rust-project.json/near/203929162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Using.20rust-project.2Ejson.html#203929162">(Jul 15 2020 at 08:40)</a>:</h4>
<p>Note that the example is somewhat bad, so if you do any improvements during research, feel free to PR :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>